package com.edg.service;

import com.github.pagehelper.Page;
import entity.User;

import java.util.List;

public interface UserService {

    int update(User user);

    int delete(Long id);

    List<User> listUser();

    User findUserById(Long id);

    User findUserByPhone(String phone);

    void register(User user,String code);

    //发送验证码
    void sendCode(String phone);
}
